
<!-- 完成的需要支付的，已经支付-->
<if condition="($data['status'] eq 3) and $data['finish_time'] and $data['pay_type'] eq 1 and $data['pay_time'] gt 0">
    <div class="dialog clearfix">
        <span class="right-big"></span>
        <span class="right-middle"></span>
        <p>
            <span class="circle green"></span>已维修
            <span class="time fl-right">{BEESCRM:$data.finish_time|date='Y-m-d H:i',###}</span>
        </p>
        <p><span>支付方式:</span> <if condition="$data['pay_type'] eq 1">微信支付<else/>线下支付</if></p>
        <if condition="$data['pay_type'] eq 1"><p><span>支付金额:</span>{BEESCRM:$data['order_amount']}</p></if>
        <p><span>完工操作：</span> {BEESCRM:$data['repairman_real_name']|mb_substr=0,1,'utf8'}师傅　工号：{BEESCRM:$data['repairman_number']}</p>
        <p><span>完工说明：</span> {BEESCRM:$data.finish_remark}</p>
        <if condition="$data['RepairOrderImage'] neq null">
            <volist name="data['RepairOrderImage']" id="vo">
                <if condition="$vo['type'] eq 1">
                    <img class="picture fl-left" src="{BEESCRM:$vo.url}"/>
                </if>
            </volist>
        </if>
    </div>
    <div class="dialog clearfix">
        <span class="right-big"></span>
        <span class="right-middle"></span>

        <p><span class="circle green"></span>已支付</p>
        <p><span>支付方式:</span>微信支付</p>
        <p><span>支付时间:</span>{BEESCRM:$data.pay_time|date='Y-m-d H:i',###}</p>
        <if condition="$data['RepairOrderImage'] neq null">
            <volist name="data['RepairOrderImage']" id="vo">
                <if condition="$vo['type'] eq 1">
                    <img class="picture fl-left" src="{BEESCRM:$vo.url}"/>
                </if>
            </volist>
        </if>
    </div>
    <!-- 完成的需要支付的，未支付-->
    <elseif condition = "($data['status'] eq 3) and $data['finish_time'] and $data['pay_type'] eq 1 and $data['order_amount'] gt 0 and $data['pay_time'] eq 0"/>
    <div class="dialog clearfix">
        <span class="right-big"></span>
        <span class="right-middle"></span>
        <p>
            <span class="circle green"></span>
            已维修<span class="time fl-right">{BEESCRM:$data.finish_time|date='Y-m-d H:i',###}</span>
        </p>
        <p><span>支付方式:</span> <if condition="$data['pay_type'] eq 1">线上支付<else/>线下支付</if></p>
        <if condition="$data['pay_type'] eq 1"><p><span>支付金额:</span>{BEESCRM:$data['order_amount']}</p></if>
        <p><span>完工操作：</span> {BEESCRM:$data['repairman_real_name']|mb_substr=0,1,'utf8'}师傅　工号：{BEESCRM:$data['repairman_number']}</p>
        <p><span>完工说明：</span> {BEESCRM:$data.finish_remark}</p>
        <if condition="$data['RepairOrderImage'] neq null">
            <volist name="data['RepairOrderImage']" id="vo">
                <if condition="$vo['type'] eq 1">
                    <img class="picture fl-left" src="{BEESCRM:$vo.url}"/>
                </if>
            </volist>
        </if>
    </div>

    <div class="dialog clearfix">
        <span class="right-big"></span>
        <span class="right-middle"></span>
        <p><span class="circle green"></span>待支付</p>
       <!-- <if condition="$data['RepairOrderImage'] neq null">
            <volist name="data['RepairOrderImage']" id="vo">
                <if condition="$vo['type'] eq 1">
                    <img class="picture fl-left" src="{BEESCRM:$vo.url}"/>
                </if>
            </volist>
        </if>-->
        <p><span>支付方式:</span>微信支付</p>
        <p><span>支付金额:</span>{BEESCRM:$data['order_amount']}</p>
        <p>
            <if condition="$data['repairman_id'] neq $userId">
                <a href="javascript:void(0)" class="submit doPay confirm" id="doPay">去支付</a>
            </if>
        </p>
    </div>
    <!-- 完成的不需要支付的-->
    <elseif condition="($data['status'] eq 3) and $data['finish_time'] and ($data['pay_type'] eq 0 or ($data['pay_type'] eq 1 and $data['order_amount'] eq 0))"/>

        <div class="dialog clearfix">
            <span class="right-big"></span>
            <span class="right-middle"></span>
            <p>
                <span class="circle green"></span>
                已维修<span class="time fl-right">{BEESCRM:$data.finish_time|date='Y-m-d H:i',###}</span>
            </p>
            <p><span>支付方式:</span> <if condition="$data['pay_type'] eq 1">线上支付<else/>线下支付</if></p>
            <p><span>完工操作：</span> {BEESCRM:$data['repairman_real_name']|mb_substr=0,1,'utf8'}师傅　工号：{BEESCRM:$data['repairman_number']}</p>
            <p><span>完工说明：</span> {BEESCRM:$data.finish_remark}</p>
            <if condition="$data['RepairOrderImage'] neq null">
                <volist name="data['RepairOrderImage']" id="vo">
                    <if condition="$vo['type'] eq 1">
                        <img class="picture fl-left" src="{BEESCRM:$vo.url}"/>
                    </if>
                </volist>
            </if>
        </div>
    </if>